<template>
  <div >
    <yfu-rich-text ref="richText"></yfu-rich-text>
    <div style="width:100%;text-align: right">
      <el-button @click="cancel">取消</el-button>
      <el-button type="primary" @click="save">保存</el-button>
    </div>
  </div>
</template>
<script type="text/javascript">
  import yfuRichText from '@/components/common/yfuRichText.vue'
  export default {
    components: {
      'yfuRichText': yfuRichText
    },
    data () {
      return {
        content: '<h2>I am Example</h2>'
      }
    },
    methods: {
      cancel () {
      },
      save () {
        let content = this.$refs.richText.getContent()
        console.log(content)
      },
      getRichText (data) {
        console.log(data)
      }
    }
  }
</script>

